import { Button, Popconfirm, Space, Table } from 'antd';
import styles from './index.module.scss';
export default function AuthManager() {
  return (
    <div className={styles.root}>
      <Table
        dataSource={[]}
        columns={[
          {
            title: '名称',
            dataIndex: 'name',
          },
          {
            title: '标识',
            dataIndex: 'code',
          },
          {
            title: '描述',
            dataIndex: 'description',
          },

          {
            title: '操作',
            dataIndex: 'action',
            render(text, rowData) {
              return (
                <Space>
                  <Popconfirm
                    title='确认删除吗?'
                    onConfirm={() => console.log('rowData =>', rowData)}
                  >
                    <Button type='link'>删除</Button>
                  </Popconfirm>
                </Space>
              );
            },
          },
        ]}
        pagination={false}
        rowKey='id'
        bordered
        size='small'
      />
    </div>
  );
}
